package com.wanmait.community.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wanmait.community.entity.Device;
import org.apache.ibatis.annotations.Param;
import java.util.Date;
import java.util.List;

public interface DeviceMapper extends BaseMapper<Device> {
    Device getKeepStandardById(Integer id);//根据设备id查手册，查device对象
    //多条件查询
    List<Device>selectDevicePageInfo(@Param("device") Device device, @Param("endCreatTime")Date endCreatTime, @Param("endUpdateTime")Date endUpdateTime);
    void insertDeviceInfo(Device device);
    void updateDeviceInfo(Device device);
    void deleteDeviceInfo(@Param("id") Integer id);
    void updateStatus(Device device);//判断device的status是否过期

}